DrawsController = BaseController.extend({
	template:'Draws',
	center:'提现记录',

	waitOn:function(){
		let self = this;
		self.partnerInfo = this.currentUser();
		Tracker.autorun(function(){
			return Meteor.subscribe('draws',{partner_id: parseInt(self.partnerInfo.id)},{},function(){
				return self.ready();
			});
		});
    },
    onRendered:function(){

	},
	data: function(){
		return {
			draws:function(){
				return Draws.find().fetch();
			},
		};
	},
})
